package com.xiaoning.sun.spring.mvc.utils;

public class RegexUtils {
	 /**
     * 判断是否是正确的邮箱地址
     * 
     * @param email
     * @return boolean true,通过，false，没通过
     */
    public static boolean isEmail(String email) {
        if (null == email || "".equals(email))
            return false;
        String regex = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
        return email.matches(regex);
    }
}
